import request from '@/utils/request'

// 查询新增预约列表
export function listAdd(query) {
  return request({
    url: '/register/add/list',
    method: 'get',
    params: query
  })
}

// 查询新增预约详细
export function getAdd(id) {
  return request({
    url: '/register/add/' + id,
    method: 'get'
  })
}

// 新增新增预约
export function addAdd(data) {
  return request({
    url: '/register/add',
    method: 'post',
    data: data
  })
}

// 修改新增预约
export function updateAdd(data) {
  return request({
    url: '/register/add',
    method: 'put',
    data: data
  })
}

// 删除新增预约
export function delAdd(id) {
  return request({
    url: '/register/add/' + id,
    method: 'delete'
  })
}
